﻿namespace Zhp.Model.Monitor
{
    public class ServerResourceModel
    {
        /// <summary>
        /// 运行时间
        /// </summary>
        public string Time { get; set; }

        /// <summary>
        /// 系统信息
        /// </summary>
        public Sys Sys { get; set; }

        /// <summary>
        /// Cpu信息
        /// </summary>
        public Cpu Cpu { get; set; }

        /// <summary>
        /// 内存信息
        /// </summary>
        public Memory Memory { get; set; }

        /// <summary>
        /// 交换区信息
        /// </summary>
        public Swap Swap { get; set; }

        /// <summary>
        /// 磁盘信息
        /// </summary>
        public Disk Disk { get; set; }
    }
    public class Sys
    {
        /// <summary>
        /// 
        /// </summary>
        public string Os { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Day { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Ip { get; set; }
    }
    public class Cpu
    {
        /// <summary>
        /// 
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Package { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Core { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int CoreNumber { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Logic { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int Used { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public int Idle { get; set; }
    }
    public class Memory
    {
        /// <summary>
        /// 
        /// </summary>
        public string Total { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Available { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Used { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public decimal UsageRate { get; set; }
    }
    public class Swap
    {
        /// <summary>
        /// 
        /// </summary>
        public string Total { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Used { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Available { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public decimal UsageRate { get; set; }
    }
    public class Disk
    {
        /// <summary>
        /// 
        /// </summary>
        public string Total { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Available { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public string Used { get; set; }

        /// <summary>
        /// 
        /// </summary>
        public decimal UsageRate { get; set; }
    }
}
